package com.olah.user.service;

import com.olah.common.entity.po.user.UserHiddenRoots;
import com.olah.user.dao.RootsDao;
import org.springframework.stereotype.Service;
import com.olah.common.entity.po.user.UserSearchRoots;

import javax.annotation.Resource;

@Service
public class RootsService {

    @Resource
    private RootsDao dao;

    public UserHiddenRoots queryHidden(int targetId) {
        return dao.queryHidden(targetId);
    }

    public int updateHidden(UserHiddenRoots roots) {
        return dao.updateHidden(roots);
    }

    public UserSearchRoots querySearch(int targetId) {
        return dao.querySearch(targetId);
    }

    public int updateSearch(UserSearchRoots roots) {
        return dao.updateSearch(roots);
    }

}
